package com.javalearn.gulimail.order.feign;

import com.javalearn.gulimail.order.vo.MemberAdressVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.List;

@FeignClient("gulimail-member")
public interface MemberFeignService {
    //远程调用member返回所有会员的收获地址列表
    @GetMapping("/member/memberreceiveaddress/{memberId}/address")
    List<MemberAdressVo> getAdress(@PathVariable("memberId") Long memberId);
}
